﻿using System;

class Telerik_Logo
{
    static void Main()
    {
        int x = int.Parse(Console.ReadLine());

        Console.Write(new string('.', x / 2));
        Console.Write("*");
        Console.Write(new string('.', (2 * x) - 3));
        Console.Write("*");
        Console.WriteLine(new string('.', x / 2));

        int a = x / 2; // First dots
        int b = 1; // Second dots
        int c = (2 * x) - 5; // Middle dots

        for (; a > 0; a--, b += 2, c -= 2)
        {
            Console.Write(new string('.', a - 1));
            Console.Write("*");
            Console.Write(new string('.', b));
            Console.Write("*");
            Console.Write(new string('.', c));
            Console.Write("*");
            Console.Write(new string('.', b));
            Console.Write("*");
            Console.WriteLine(new string('.', a - 1));
        }

        for (int i = 0; i < (x - (x / 2) - 2); i++, b++, c -= 2)
        {
            Console.Write(new string('.', b));
            Console.Write("*");
            Console.Write(new string('.', c));
            Console.Write("*");
            Console.WriteLine(new string('.', b));
        }

        Console.Write(new string('.', b));
        Console.Write("*");
        Console.WriteLine(new string('.', b));

        b--;
        c = 1;

        for (int i = 0; i < (x - 1); i++, b--, c += 2)
        {
            Console.Write(new string('.', b));
            Console.Write("*");
            Console.Write(new string('.', c));
            Console.Write("*");
            Console.WriteLine(new string('.', b));
        }

        b += 2;
        c -= 4;

        for (int i = 0; i < x - 2; i++, b++, c -= 2)
        {
            Console.Write(new string('.', b));
            Console.Write("*");
            Console.Write(new string('.', c));
            Console.Write("*");
            Console.WriteLine(new string('.', b));
        }

        Console.Write(new string('.', b));
        Console.Write("*");
        Console.WriteLine(new string('.', b));
    }
}
